package com.wubai.bigdata.flink.sink.common;


/**
 * 返回工具类
 *
 * @author hecq 
 * 
 */
public class ResultUtils {

    /**
     * 成功
     *
     * @param <T>
     * @return
     */
    public static <T> BaseResponse<T> success() {
        return new BaseResponse<>(0);
    }



    /**
     * 失败
     *
     * @param code
     * @return
     */
    public static BaseResponse error(int code) {
        return new BaseResponse(code);
    }
}
